package classes_and_objects_0826;

public class Students {
    //姓名
    public String name;
    //性别
    public String sex;
    //年龄
    public int age;
    //学分
    public double credit;
    //构造方法
    public Students(String name,String sex,int age,double credit){
        this.name=name;
        this.age=age;
        this.sex=sex;
        this.credit=credit;
    }
    public Students(){
    }
    public static void goClass(){
        System.out.println("按时上课，不要迟到，如果请假，及时去补");
    }
    public static void writeWork(){
        System.out.println("教务系统，完成作业，一旦拖沓，神仙难教");
    }
    public static void exam(){
        System.out.println("去考试");
    }

}
